package com.medistat.model;

import com.medistat.model.interfaces.PersistanceObject;
import com.medistat.model.utils.ModelUtils;

public abstract class StandardPersistentObject implements PersistanceObject {

	protected <T extends StandardPersistentObject, Z extends StandardPersistentObject> void addDependentToParent(T dependentObject, Class<Z> classToInvokeParentSetter) throws Exception {
		ModelUtils.addDependentToParent(dependentObject, this, classToInvokeParentSetter);
	}
}
